<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">

  <xsl:import href="/livcos.org/sys/resolver.xsl"/>
	
	<xsl:variable name="view" select="'/livcos.org/page/doc/view'"/>
	<xsl:variable name="dataPath" select="'/test.livcos.org/data'"/>
	
	<xsl:template match="uri[@ext = 'pdf']">
		<access obj="{$view}" scope="view">
			<param key="ref" value="{$dataPath}/{@relativeName}"/>
			<param key="type" value="pdf"/>
		</access>
	</xsl:template>
	
</xsl:stylesheet>